package com.bv.hr.system.security;

import org.springframework.security.core.GrantedAuthority;

/**
 * @author CYT7
 * @version 1.0
 * @time 12月 27,2021
 * @describe 权限封装
 */
public class GrantedAuthorityImpl implements GrantedAuthority {
    private static final long serialVersionUID = 1L;
    private String authority;
    public GrantedAuthorityImpl(String authority) {
        this.authority = authority;
    }
    public void setAuthority(String authority) {
        this.authority = authority;
    }
    @Override
    public String getAuthority() {
        return this.authority;
    }
}